/*
 * MyVector.java
 *
 * Created on 16 de Junho de 2007, 05:25
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Interface.JGraph_Algebra;

/**
 *
 * @author ra044637
 */
public class MyVector extends java.util.Vector<String>
{
    
    /** Creates a new instance of MyVector */
    public MyVector() {
        super();
    }
    
    public String implode(String glue)
    {
        String str = new String("");
        Object[] vetor = this.toArray();
        int i = 0;
        for(i = 0; i < vetor.length; i++)
        {
            if(i == 0) str = vetor[i].toString();
            else str += glue.toString() + vetor[i].toString();
        }
        return str;
    }
    
    
}
